package cn.itrip.auth.service.user;

import cn.itrip.beans.pojo.ItripUser;
import java.util.List;
import java.util.Map;

public interface UserService {
    //邮箱注册
    public void itriptxCreateUser(ItripUser user) throws Exception;
    //邮箱激活
    public boolean activate(String mail,String code) throws Exception;

    public ItripUser findUserByUserCode(String userCode) throws Exception;

    public void itriptxCreateUserByPhone(ItripUser user) throws Exception;

    public boolean validatePhone(String phoneNum,String code) throws Exception;
    //登录
    public ItripUser login(String userCode,String userPassword) throws Exception;


















/*    //根据ID查找用户所有信息
    public ItripUser getItripUserById(Long id)throws Exception;

    //按照自定义参数去查询用户列表
    public List<ItripUser> getItripUserListByMap(Map<String,Object> param)throws Exception;

    //统计总数
    public Integer getItripUserCountByMap(Map<String,Object> param)throws Exception;

    //添加
    public Integer insertItripUser(ItripUser itripUser)throws Exception;

    //更新
    public Integer updateItripUser(ItripUser itripUser)throws Exception;

    //删除
    public Integer deleteItripUserById(Long id)throws Exception;*/

}
